package com.qixin.api.service;

import com.qixin.api.bean.ComCar;
import com.baomidou.mybatisplus.service.IService;
import com.qixin.api.bean.ResultPage;
import com.qixin.api.bean.VoPage;


import javax.servlet.http.HttpSession;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 租车，车辆信息 服务类
 * </p>
 *
 * @author 张子艺
 * @since 2018-10-02
 */
public interface ComCarService extends IService<ComCar> {
    /**
     * 关联 动态条件查询车辆概览信息 带首页图片URl地址
     *
     * @param param 条件
     * @return
     */
    List<ComCar> findCarByParam(String param);
    List<ComCar> findCarByParama(String param,String carSize,String carKm,String base,String carBrand);
    /**
     *
     * @param carId 需要传的车辆ID 用于查询本车辆的详细信息
     * @return
     */
    ComCar findCarByCarId(Long carId);
    String insertCar(ComCar comCar,Long[] filesId) throws SQLException;
    String insertcar(ComCar comCar,Long[] filesId,Long resultURL) throws SQLException;
    public String updatesentsu(Long id);
    String updatesentsu2(Long id);
    String updatesentsu3(Long id);
    String updatesentsu4(Long id);
    ResultPage<ComCar> selectMyPage(VoPage voPage,HttpSession session)  ;
	ResultPage<ComCar> selectBill(VoPage voPage,HttpSession session)  ;
    ResultPage<ComCar> selectMyPage2(VoPage voPage,String carType,HttpSession session,Long id);
    ResultPage<ComCar> search(Map map,VoPage voPage);
    ResultPage<ComCar> searchcardetail(Map map,VoPage voPage);
    ResultPage<ComCar> selectALL(VoPage voPage)  ;
    ResultPage<ComCar> selectaLL(VoPage voPage,HttpSession session,Long id)  ;
    boolean deleteAll(ComCar comCar);
    ResultPage<ComCar> selectcar(VoPage voPage)  ;


    //平台已租车辆
    ResultPage<ComCar> selecta(VoPage voPage,String carType,HttpSession session,Long id);



}
